home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-11 | 1.8 KB | 62 lines | [TEXT/MPS ] |
- // Copyright © 1995 Apple Computer, Inc. All rights reserved.
- // Release Version: $ 1.0 d10 $
-
- #ifndef IDLINGPRT_H
- #define IDLINGPRT_H
-
- //=======================================================================
- #ifndef _IDLINGDEF_
- #include "IdlingDef.h"
- #endif
-
- // ----- Framework Includes -----
- #ifndef FWPART_H
- #include "FWPart.h" // FW_CPart
- #endif
-
- // ----- Foundation Layer -----
- #ifndef FWSTDDEF_H
- #include <FWStdDef.h> // ?
- #endif
-
- //=======================================================================
- class FW_CLASS_ATTR FW_CPart;
- class FW_CLASS_ATTR FW_CString;
- class FW_CLASS_ATTR FW_CMenuBar;
- class FW_CLASS_ATTR FW_CMenuEvent;
- class FW_CLASS_ATTR FW_CPresentation;
-
- //=======================================================================
- class FW_CLASS_ATTR CIdlingPart : public FW_CPart {
- public:
- CIdlingPart(ODPart* odPart);
- virtual ~CIdlingPart();
- static const ODValueType kPartKind;
- static const ODValueType kPartUserName;
- // overrides
- protected:
- virtual void Initialize(Environment* ev);
- virtual FW_CFrame* NewFrame(Environment* ev,
- ODFrame* odFrame,
- FW_CPresentation* presentation,
- FW_Boolean fromStorage);
- virtual FW_Boolean DoAdjustMenus(Environment* ev,
- FW_CMenuBar* menuBar,
- FW_Boolean hasMenuFocus,
- FW_Boolean isRoot);
- virtual FW_Boolean DoMenu(Environment* ev,
- const FW_CMenuEvent& theMenuEvent);
- virtual FW_Boolean DoIdle(Environment* ev,
- const FW_CNullEvent& theNullEvent);
- // new members
- public:
- virtual void MyInitMenus(Environment* ev);
- virtual void MyInvalidatePresentation(Environment* ev);
- private:
- FW_Boolean fIdlingActive;
- FW_CPresentation* fPresentation;
- };
-
- //=======================================================================
- #endif
-